package com.tarzan.oauth.feign;

import com.tarzan.common.core.base.BaseResponse;
import com.tarzan.oauth.feign.fallbackfactory.RemoteUserServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @Package com.tarzan.oauth.feign
 * @Title RemotPermissionsService
 * @Description TODO
 * @Author liujinshan
 * @CreateTime 2021/7/2 10:34
 */
@FeignClient(value = "tarzan-system",fallbackFactory = RemoteUserServiceFallbackFactory.class)
public interface RemotPermissionsService {

    @GetMapping(value = "menu/selectMenuPermsByUserId/{userId}")
    BaseResponse<List<String>> selectMenuPermsByUserId(@PathVariable Long userId);
}
